package com.hk.webapp.service.impl;

import com.hk.webapp.bean.CareerType;
import com.hk.webapp.dao.CareerTypeMapper;
import com.hk.webapp.service.CareerTypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(readOnly = true)
public class CareerTypeServiceImpl  implements CareerTypeService {

    @Resource
    private CareerTypeMapper careerTypeMapper;

    @Override
    public List<CareerType> GetEntityList() {
        return careerTypeMapper.GetEntityList();
    }

    @Override
    public CareerType GetEntityById(Integer id) {
        return careerTypeMapper.selectByPrimaryKey(id);
    }
}
